# -*- coding: utf-8 -*-
# @Time    : 2025/6/15 16:09
# @Author  : XinHuang
# @Email   : SA24231052@mail.ustc.edu.cn
# @File    : log_progress_bar
# @Software: PyCharm
from log import progress_bar_iteration
from log import progress_bar_target
import time


# 示例用法
if __name__ == "__main__":
    total_iterations = 10  # 总迭代次数
    for i in range(total_iterations + 1):
        progress_bar_iteration(i, total_iterations, prefix='进度:', suffix='完成', length=50)
        time.sleep(0.1)  # 模拟处理时间

    now = [10,9,8,7,6,5,4,3,2,1]
    target = 1.5
    for i in now:
        progress_bar_target(i, target, prefix='进度:', suffix='完成', length=50)
        time.sleep(0.1)  # 模拟处理时间